package com.common.www.repository.programme;

import org.springframework.boot.base.jpa.repository.support.ExtendedRepository;
import com.common.www.bean.entity.programme.PrecipitateSsdb;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;


@Repository
public interface PrecipitateSsdbRepository extends ExtendedRepository<PrecipitateSsdb, Long> {

    /**
     * 按项目删除
     * @param flag
     * @param projectId
     * @return
     */
    @Modifying
    @Transactional
    int deleteByFlagAndProjectId(Integer flag, Long projectId);


}
